﻿<Window x:Class="Shoozla.View.SearchingNagScreenView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  Background="Transparent"
        Title="Shoozla is working for you..." Height="275" Width="525" ShowInTaskbar="False" ResizeMode="NoResize" Topmost="False" WindowStyle="None" WindowStartupLocation="CenterOwner" UseLayoutRounding="True" BorderBrush="Black" BorderThickness="2" AllowsTransparency="False">

    <DockPanel Background="{StaticResource BackgroundBrush}"  OpacityMask="{x:Null}">
        <WrapPanel VerticalAlignment="Center"  DockPanel.Dock="Bottom">
            <Button x:Name="SelectNoneBT" Command="{Binding Path=CmdPreviewSelectNone}" Width="35" ToolTip="Clear selection" Style="{DynamicResource CmdButton}" >
            <Image Source="/Shoozla;component/Images/selectNone.png"/>
        </Button>
            <Button x:Name="SelectAllBT" Command="{Binding Path=CmdPreviewSelectAll}" Width="35" ToolTip="Select All" Style="{DynamicResource CmdButton}" >
            <Image Source="/Shoozla;component/Images/selectAll.png"/>
        </Button>
            <ProgressBar DockPanel.Dock="Bottom" Name="fakePB" IsIndeterminate="True" Height="25" Width="295"></ProgressBar>
            <Button x:Name="CancelBT" Command="{Binding Path=CmdCancel}" ToolTip="Stop the search" Style="{DynamicResource CmdButton}" Width="25" Height="25" >
                <Image Source="/Shoozla;component/Images/cancel.png" />
            </Button>
            <Button x:Name="CloseBT" Content="Close" Command="{Binding Path=CmdClose}" ToolTip="Close this window" Style="{DynamicResource CmdButton}" >
            </Button>
            <Button x:Name="ApplyBT" Content="Apply" Command="{Binding Path=CmdApply}" ToolTip="Save all covers and apply to the files" Style="{DynamicResource CmdButton}" >
            </Button>
        </WrapPanel>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="155" />
            </Grid.ColumnDefinitions>
            <TabControl Name="summaryTC" Grid.Column="0" SelectionChanged="summaryTC_SelectionChanged">
                    <TabItem Header="Album" Name="albumTI">
                    <Grid>
                        <ListBox Name="albumLB" ItemsSource="{Binding Path=AlbumCoversFound}" FontSize="12" SelectionChanged="albumLB_SelectionChanged">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <WrapPanel Orientation="Horizontal">
                                        <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"></CheckBox>
                                        <TextBlock Margin="5,0,0,0" Foreground="Black" Text="{Binding DisplayString, Mode=OneWay}"></TextBlock>
                                    </WrapPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </TabItem>
                    <TabItem Header="Title" Name="songTI">
                        <ListBox Name="songLB" ItemsSource="{Binding Path=SongCoversFound}" FontSize="12" SelectionChanged="songLB_SelectionChanged">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <WrapPanel Orientation="Horizontal">
                                        <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"></CheckBox>
                                        <TextBlock Margin="5,0,0,0" Foreground="Black" Text="{Binding DisplayString, Mode=OneWay}"></TextBlock>
                                    </WrapPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </TabItem>
                    <TabItem Header="Artist" Name="artistTI">
                        <ListBox Name="artistLB" ItemsSource="{Binding Path=ArtistCoversFound}" FontSize="12" SelectionChanged="artistLB_SelectionChanged">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <WrapPanel Orientation="Horizontal">
                                        <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"></CheckBox>
                                        <TextBlock Margin="5,0,0,0" Foreground="Black" Text="{Binding DisplayString, Mode=OneWay}"></TextBlock>
                                    </WrapPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </TabItem>
                </TabControl>
            <Image Name="previewCover" Stretch="Fill" Grid.Column="1" Height="145" Width="145">
                <Image.BitmapEffect>
                    <DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="20" Softness="2" Opacity="0.5"/>
                </Image.BitmapEffect>
                </Image>
        </Grid>
        
    </DockPanel>
  
 
</Window>
